3.37 \(\int \csc ^n(a+b x) \, dx\)

Optimal. Leaf size=69 \[ \frac {\cos (a+b x) \csc ^{n-1}(a+b x) \, _2F_1\left (\frac {1}{2},\frac {1-n}{2};\frac {3-n}{2};\sin ^2(a+b x)\right )}{b (1-n) \sqrt {\cos ^2(a+b x)}} \]

[Out]

cos(b*x+a)*csc(b*x+a)^(-1+n)*hypergeom([1/2, 1/2-1/2*n],[3/2-1/2*n],sin(b*x+a)^2)/b/(1-n)/(cos(b*x+a)^2)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3772, 2643} \[ \frac {\cos (a+b x) \csc ^{n-1}(a+b x) \, _2F_1\left (\frac {1}{2},\frac {1-n}{2};\frac {3-n}{2};\sin ^2(a+b x)\right )}{b (1-n) \sqrt {\cos ^2(a+b x)}} \]

Antiderivative was successfully verified.

[In]

Int[Csc[a + b*x]^n,x]

[Out]

(Cos[a + b*x]*Csc[a + b*x]^(-1 + n)*Hypergeometric2F1[1/2, (1 - n)/2, (3 - n)/2, Sin[a + b*x]^2])/(b*(1 - n)*S
qrt[Cos[a + b*x]^2])

Rule 2643

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(Cos[c + d*x]*(b*Sin[c + d*x])^(n + 1)*Hypergeomet
ric2F1[1/2, (n + 1)/2, (n + 3)/2, Sin[c + d*x]^2])/(b*d*(n + 1)*Sqrt[Cos[c + d*x]^2]), x] /; FreeQ[{b, c, d, n
}, x] &&  !IntegerQ[2*n]

Rule 3772

Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(b*Csc[c + d*x])^(n - 1)*((Sin[c + d*x]/b)^(n - 1)
*Int[1/(Sin[c + d*x]/b)^n, x]), x] /; FreeQ[{b, c, d, n}, x] &&  !IntegerQ[n]

Rubi steps

\begin {align*} \int \csc ^n(a+b x) \, dx &=\csc ^n(a+b x) \sin ^n(a+b x) \int \sin ^{-n}(a+b x) \, dx\\ &=\frac {\cos (a+b x) \csc ^{-1+n}(a+b x) \, _2F_1\left (\frac {1}{2},\frac {1-n}{2};\frac {3-n}{2};\sin ^2(a+b x)\right )}{b (1-n) \sqrt {\cos ^2(a+b x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.09, size = 59, normalized size = 0.86 \[ -\frac {\cos (a+b x) \sin ^2(a+b x)^{\frac {n-1}{2}} \csc ^{n-1}(a+b x) \, _2F_1\left (\frac {1}{2},\frac {n+1}{2};\frac {3}{2};\cos ^2(a+b x)\right )}{b} \]

Antiderivative was successfully verified.

[In]

Integrate[Csc[a + b*x]^n,x]

[Out]

-((Cos[a + b*x]*Csc[a + b*x]^(-1 + n)*Hypergeometric2F1[1/2, (1 + n)/2, 3/2, Cos[a + b*x]^2]*(Sin[a + b*x]^2)^
((-1 + n)/2))/b)

________________________________________________________________________________________

fricas [F]  time = 0.66, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\csc \left (b x + a\right )^{n}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(b*x+a)^n,x, algorithm="fricas")

[Out]

integral(csc(b*x + a)^n, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \csc \left (b x + a\right )^{n}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(b*x+a)^n,x, algorithm="giac")

[Out]

integrate(csc(b*x + a)^n, x)

________________________________________________________________________________________

maple [F]  time = 2.65, size = 0, normalized size = 0.00 \[ \int \csc ^{n}\left (b x +a \right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(csc(b*x+a)^n,x)

[Out]

int(csc(b*x+a)^n,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \csc \left (b x + a\right )^{n}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(b*x+a)^n,x, algorithm="maxima")

[Out]

integrate(csc(b*x + a)^n, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int {\left (\frac {1}{\sin \left (a+b\,x\right )}\right )}^n \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1/sin(a + b*x))^n,x)

[Out]

int((1/sin(a + b*x))^n, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \csc ^{n}{\left (a + b x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(b*x+a)**n,x)

[Out]

Integral(csc(a + b*x)**n, x)

________________________________________________________________________________________